calculating foreign exchange cross-rates